package com.shaunstone.web.sports.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloWorld {

	@RequestMapping("/t2")
	public ModelAndView helloWorld(Model model) {
		model.addAttribute("message", "Hello World!");
		ModelAndView mv = new ModelAndView("t2");
		mv.addObject("message", "what up tho");
		return mv;
	}
}
